package listenTogether;

// listenTogether.MusicState.java
public class MusicState {
    private static String currentSong = null;
    private static long startTime = 0;

    public static synchronized void setCurrentSong(String song, long startTime) {
        currentSong = song;
        MusicState.startTime = startTime;
    }

    public static synchronized String getCurrentSong() {
        return currentSong;
    }

    public static synchronized long getStartTime() {
        return startTime;
    }
}
